package com.systop.service;

import com.systop.dao.CommentDao;
import com.systop.dao.MessageDao;
import com.systop.entity.Comment;
import com.systop.entity.Message;

import java.util.ArrayList;
import java.util.List;

public class MessageService {

    private MessageDao  messageDao = new MessageDao();
    public ArrayList<Message> findAll(){
        ArrayList<Message> messageList = messageDao.findAll();
        return messageList;
    }

    public int add(Message message){
        return messageDao.add(message);
    }
}
